<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>exa3_2</title>
</head>
<body>

<h3 style="color: blue">您的名字是：<%=request.getParameter("user")%></h3>
<h3>客户协议:<%=request.getProtocol()%></h3>
<h3>服务器名:<%=request.getServerName()%></h3>
<h3>服务器端口号:<%=request.getServerPort()%></h3>
<h3>客户端IP地址：<%=request.getRemoteAddr()%></h3>
<h3>客户提交信息长度:<%=request.getContentLength()%></h3>
<h3>客户提交信息方式:<%=request.getMethod()%></h3>
<h3>客户提交信息页面位置:<%=request.getServletPath()%></h3>
<h3>HTTP头文件中User-Agent的值 :<%=request.getHeader("User-Agent")%></h3>
</body>
</html>
